#ifndef DEVICEGROUPTABLEMODEL_H
#define DEVICEGROUPTABLEMODEL_H

#include <QAbstractTableModel>
#include "deviceModel.h"
class DeviceGroupTableModel :public QAbstractTableModel
{
    Q_OBJECT
public:
    DeviceGroupTableModel(QObject *parent = nullptr);
    int rowCount(const QModelIndex &parent = QModelIndex()) const override;
    int columnCount(const QModelIndex &parent = QModelIndex()) const override;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
    QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
    void updateAllDeviceList(const QList<deviceModel> &newList);
private:
    QList<deviceModel> deviceList;
};

#endif // DEVICEGROUPTABLEMODEL_H
